package top.leyi.IService;

import top.leyi.entity.Approve;
import top.leyi.entity.user.User;

import java.util.List;

public interface IApproveService {

    /**
     * 申请认证
     * @param imageUrl
     * @param user
     */
    public void addApprove(Approve approve)throws Exception;

    /***
     * 成功通过认证
     * @param user
     */
    public void approveSuc(Approve approve)throws Exception;

    /***
     *  认证失败
     * @param user
     */
    public void approveFail(Approve approve, String msg)throws Exception;;

    /**
     * 删除认证
     */
    public void cancelApprove(Approve approve);

    /**
     * 查看个人认证状态
     */
    public List<Approve> queryUserApproveStatus(User user);


    /**
     * 查看未认证所有人的认证
     */
    public List<Approve> queryUndealApprove(int page );


    /**
     * 查看已认证所有人的认证
     */
    public List<Approve> querySucApprove(int page );


    /**
     * 查看拒绝所有人的认证
     */
    public List<Approve> queryFailApprove(int page );


}
